import request from '@/utils/request'

export function save(data) {
  return request({
    url: `/zhongyi/tag/save`,
    method: 'post',
    data
  })
}

export function getDetail(code) {
  return request({
    url: `/zhongyi/tag/detail/${code}`,
    method: 'get'
  })
}

export function queryData(data) {
  return request({
    url: '/zhongyi/tag/query',
    method: 'post',
    data
  })
}

export function getAll(data) {
  return request({
    url: '/zhongyi/tag/all',
    method: 'get',
    data
  })
}


export function deletes(code) {
  return request({
    url: `/zhongyi/tag/delete/${code}`,
    method: 'get'
  })
}

export function restore(code) {
  return request({
    url: `/zhongyi/tag/restore/${code}`,
    method: 'get'
  })
}
